import React from 'react';
import Index from '../pages/index';
import getStart from '../pages/getStart';
import About from '../pages/About';

export const nav = [
    {
        to: "/",
        txt: "首页"
    },
    {
        to: "/getStart",
        txt: "新手入门"
    },
    {
        to: "/about",
        txt: "关于"
    },
]

export const routes = [
    {
        path: '/',
        exact: true,
        render(props) {
            return <Index />
        }
    }, {
        path: '/getStart',
        exact: true,
        render(props) {
            <getStart></getStart>
        }
    }, {
        path: '/about',
        exact: true,
        render(props) {
            <About></About>
        }
    }
]